
public class HelloWorldLoops2
{
	public static void main(String[] args)
	{
		//Method 1
		int x = 0;
		boolean keepGoing = true;
		while(keepGoing)
		{
			System.out.print(x);
			
			if(x >= 10)
			{
				keepGoing = false;
			}
			
			x++;
		}
		System.out.println("");
		
		
		//Method 2
		x = 0;
		while(x <= 10)
		{
			System.out.print(x);
			x++;
		}
	}
}
